<!DOCTYPE html>
<html>
<head>
<base href="${basePath}">
<title>樾瑜伽管理系统-登录</title>
<meta charset="UTF-8">
$!{include("import_js_css.html")}
<script type="text/javascript" src="${assetsPath}/js/jquery/jquery.mb.browser.js"></script>
<script type="text/javascript">
(function($){
	if($.browser.ios){//表示是ios设备
		window.location.href = "yueyogaPadAdmin/toLogin.jhtml";//跳转到pad页面
		return;
	}
})(jQuery);

function documentReady() {
	var msg = "${msg}";
	if(msg != null && msg != ""){
		alert(msg);
	}
	
	$("#organization").select2({
		width: "100%",
		minimumResultsForSearch: -1
	});
}
// 获取验证码，此为全局函数
function changeCaptcha(){
	var captcha = document.getElementById("captcha");
	captcha.src = "yueyogaAdmin/getcaptcha.jhtml?id=" + Math.random();
}
</script>
</head>
<body class="panel-tologin-bg">
<div class="container" style="margin-top:150px;width:500px;">
	<div class="panel-info panel-tologin-panel">
		<div class="panel-heading panel-result-title" style="height: 50px;">
			<h3 class="panel-title" style="width: 200px;height: 28px; line-height: 28px; margin-left: 20px;font-size:13px !important;">樾瑜伽管理系统登录</h3>
		</div>
		<div id="div_result_member" class="panel-tologin-content">
			<form class="form-horizontal" name="form" action="yueyogaAdmin/j_spring_security_check" method="post">
				<div class="form-group">
					<label for="inputUsername" class="col-sm-3 control-label" style="width:90px;">用户名</label>
					<div class="col-sm-8" style="width:336px;margin-bottom:10px;">
						<input type="text" class="form-control" name="user.username" value="${username}" required id="inputUsername">
					</div>
					<label for="inputPassword" class="col-sm-3 control-label" style="width:90px;">密　码</label>
					<div class="col-sm-8" style="width:336px;margin-bottom:10px;">
						<input type="password" class="form-control" name="user.password" value="${password}" required id="inputPassword">
					</div>
					<label for="hallcode" class="col-sm-3 control-label" style="width:90px;">会　馆</label>
					<div class="col-sm-8" style="width:336px;margin-bottom:10px;">
						<select id="organization" name="user.organization" class="selectpicker" data-width="100%">
					  		<!--#var(Hall hall, List<Hall> halls)-->
					  		<!--#for(Hall hall:halls)-->
					  		<option value="${hall.code}">${hall.name}</option>
					  		<!--#end-->
					  	</select>
					</div>
					<!-- <label for="inputCaptcha" class="col-sm-3 control-label" style="width:90px;">验证码</label>
					<div class="col-sm-4" style="width:210px; padding-right:5px;">
						<input type="text" class="form-control" name="user.captcha" value="${captcha}" required id="inputCaptcha">
					</div>
					<div class="col-sm-5" style="width:150px; padding-left:0px;margin-bottom:10px;">
						<img id="captcha" src="yueyogaAdmin/getcaptcha.jhtml" width="135" height="35" alt="请稍候" style="cursor:pointer;border:solid 1px #B5B8C8;" onclick="changeCaptcha()"/>
					</div> -->
					
					<div class="col-sm-12" style="width:436px;margin-top:10px;">
						<div style="float:right;">
							<button type="submit" class="btn btn-ade-default">登录</button>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
</body>
</html>
